<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue v-on:click Vue 防止冒泡</title>
    <script src="./js/vue.min.js"></script>
</head>
<body>
    <div id="vm">
        <div @click="show1()">
            <div @click.stop="show2()">点击我呀</div>
        </div>
    </div>
    <script>
    var vm = new Vue({
        el: '#vm',
        data () {
            return {
                hide : true
            }
        },
        methods:{
            show1: function () {
                alert(1)
            },
            show2: function (ev1) {
                alert(2)
            }
        }
    });  
    </script>
</body>
</html>